package com.heoma.kafka.listener;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class HelloListener {

    @KafkaListener(topics = "topic")
    public void onMsg(String msg) {
        System.out.println(msg);
    }
}
